package org.bpms.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfinal.handler.Handler;

/**
 * 全局handler处理器
 * @author hupei
 *
 */
public class BpmsHandler extends Handler{
	@Override
	public void handle(String target, HttpServletRequest request,
			HttpServletResponse response, boolean[] isHandled) {
		//设置上下文路径
		request.setAttribute("ctx", request.getContextPath());
		
		//转到下一个处理器,没有的话转到controller
		nextHandler.handle(target, request, response, isHandled);
	}	
}
